#define  _CRT_SECURE_NO_WARNINGS  1
#include <stdio.h>
int my_pow(int a, int b)
{
	if (b > 1)
		return a * my_pow(a,b - 1);
	else
		return a;

}
int main()
{
	int n = 0, k = 0;
	scanf("%d %d", &n, &k);
	int c = my_pow(n, k);
	printf("%d", c);

	return 0;
}